package com.koo.modules.store.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.koo.common.base.entity.CommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author charlin
 * @email 136137465@qq.com
 * @date 2022-08-16 15:14:22
 */
@Data
@ApiModel()
@TableName("store_image")
public class StoreImageEntity extends CommonEntity {
    private static final long serialVersionUID = 1L;


    @ExcelIgnore
    @TableId
    private Long imageId;

    @ColumnWidth(11)
    @ExcelProperty("图片名称")
    @ApiModelProperty(value = "图片名称")
    private String name;

    @ColumnWidth(11)
    @ExcelProperty("图片路径")
    @ApiModelProperty(value = "图片路径")
    private String url;

    @ColumnWidth(11)
    @ExcelProperty("图片uid")
    @ApiModelProperty(value = "图片uid")
    private String uid;

    @ColumnWidth(11)
    @ExcelProperty("图片扩展名")
    @ApiModelProperty(value = "图片扩展名")
    private String type;

    @ColumnWidth(11)
    @ExcelProperty("图片大小")
    @ApiModelProperty(value = "图片大小")
    private String size;

    @ColumnWidth(11)
    @ExcelProperty("1: 是默认图片")
    @ApiModelProperty(value = "1: 是默认图片")
    private Integer isDefault;


}
